/*
与后台交互模块 （依赖已封装的ajax函数）
 */
import ajax from './ajax'
const BASE_URL = '/api';
// const BASE_URL = '/public/api/zs';

export const reqMapInfo = (data) => ajax(`${BASE_URL}/project/getall`, data, 'POST', {'Content-Type': 'application/x-www-form-urlencoded;charset=UTF-8'})
// 获取项目展示信息
export const reqProjectInfo = (data) => ajax(`${BASE_URL}/project/getinfo`, data, 'POST', {'Content-Type': 'application/x-www-form-urlencoded;charset=UTF-8'})
// 房屋类型分析 chart/counthousetype
export const reqHousetype =  (data) => ajax(`${BASE_URL}/chart/counthousetype`, data, 'POST',{'Content-Type': 'application/x-www-form-urlencoded;charset=UTF-8'})
// 月度资金使用情况zs/chart/counthousetype/monthly
export const reqAccountmonthly = (data) => ajax(`${BASE_URL}/chart/countaccountmonthly`, data, 'POST',{'Content-Type': 'application/x-www-form-urlencoded;charset=UTF-8'})
// 月进度分析 /chart/countanalysis
export const reqAnalysis = (data) => ajax(`${BASE_URL}/chart/countanalysis`, data, 'POST',{'Content-Type': 'application/x-www-form-urlencoded;charset=UTF-8'})
// 资金使用情况 /chart/countaccount
export const reqAccount = (data) => ajax(`${BASE_URL}/chart/countaccount`, data, 'POST',{'Content-Type': 'application/x-www-form-urlencoded;charset=UTF-8'})
// 项目完成进度 /chart/countproject
export const reqProject = (data) => ajax(`${BASE_URL}/chart/countproject`, data, 'POST',{'Content-Type': 'application/x-www-form-urlencoded;charset=UTF-8'})
// 劳务公司签约统计 /chart/countcuscode
export const reqCuscode = (data) => ajax(`${BASE_URL}/chart/countcuscode`, data, 'POST',{'Content-Type': 'application/x-www-form-urlencoded;charset=UTF-8'})
// 获取项目中的户数信息
export const reqAll = (data) => ajax(`${BASE_URL}/assess/getall`, data, 'POST',{'Content-Type': 'application/x-www-form-urlencoded;charset=UTF-8'})




/** 新版数据20181205  **/
// screen
// 获取项目总体信息
export const reqScreenInit = (data) => ajax(`${BASE_URL}/project/getAll`, data, 'POST', {'Content-Type': 'application/x-www-form-urlencoded;charset=UTF-8'})
// 获取单个项目的详细信息
export const reqScreenInfo = (data) => ajax(`${BASE_URL}/project/getInfo`, data, 'POST', {'Content-Type': 'application/x-www-form-urlencoded;charset=UTF-8'})
// 获取总体项目的户数信息
export const reqScreenFamily = (data) => ajax(`${BASE_URL}/project/countfamilys`, data, 'POST', {'Content-Type': 'application/x-www-form-urlencoded;charset=UTF-8'})
// 获取总体项目房屋类型
export const reqScreenHouse = (data) => ajax(`${BASE_URL}/project/getHouse`, data, 'POST', {'Content-Type': 'application/x-www-form-urlencoded;charset=UTF-8'})
// 获取项目总体资金状况
export const reqScreenMoney = (data) => ajax(`${BASE_URL}/project/getMoney`, data, 'POST', {'Content-Type': 'application/x-www-form-urlencoded;charset=UTF-8'})
// 获取全部项目的进度状况
export const reqScreenSchedule = (data) => ajax(`${BASE_URL}/project/schedule`, data, 'POST', {'Content-Type': 'application/x-www-form-urlencoded;charset=UTF-8'})
// 获取总体补偿方式
export const reqScreenCompensation = (data) => ajax(`${BASE_URL}/project/compensation`, data, 'POST', {'Content-Type': 'application/x-www-form-urlencoded;charset=UTF-8'})
// 获取项目劳务排名
export const reqScreenLaowuRank = (data) => ajax(`${BASE_URL}/project/laowuRank`, data, 'POST', {'Content-Type': 'application/x-www-form-urlencoded;charset=UTF-8'})
// 征收房屋面积信息
export const reqScreenArea = (data) => ajax(`${BASE_URL}/project/getArea`, data, 'POST', {'Content-Type': 'application/x-www-form-urlencoded;charset=UTF-8'})
// 第三方机构信息
export const reqScreenThirdCom = (data) => ajax(`${BASE_URL}/project/thirdCom`, data, 'POST', {'Content-Type': 'application/x-www-form-urlencoded;charset=UTF-8'})
// 每月支出情况
export const reqScreenMonthPay = (data) => ajax(`${BASE_URL}/project/monthPay`, data, 'POST', {'Content-Type': 'application/x-www-form-urlencoded;charset=UTF-8'})
// project
// 获取单个项目信息
export const reqProjectInit = (data) => ajax(`${BASE_URL}/project/getProject`, data, 'POST', {'Content-Type': 'application/x-www-form-urlencoded;charset=UTF-8'})
// 获取项目节点信息
export const reqSignStatus = (data) => ajax(`${BASE_URL}/project/getLog`, data, 'POST', {'Content-Type': 'application/x-www-form-urlencoded;charset=UTF-8'})
// 补偿均价
export const reqAvgPrice = (data) => ajax(`${BASE_URL}/project/avgPrice`, data, 'POST', {'Content-Type': 'application/x-www-form-urlencoded;charset=UTF-8'})
// 资金分类
export const reqMoneyType = (data) => ajax(`${BASE_URL}/project/moneyType`, data, 'POST', {'Content-Type': 'application/x-www-form-urlencoded;charset=UTF-8'})
// 资金进度(按月)
export const reqMoneySpeed = (data) => ajax(`${BASE_URL}/project/getMoneySpeed`, data, 'POST', {'Content-Type': 'application/x-www-form-urlencoded;charset=UTF-8'})
// 资金进度(按日)
export const reqMoneySpeedDay = (data) => ajax(`${BASE_URL}/project/getMoneyDay`, data, 'POST', {'Content-Type': 'application/x-www-form-urlencoded;charset=UTF-8'})
// 项目签约进度(按月)
export const reqSignSpeed = (data) => ajax(`${BASE_URL}/project/getSignSpeed`, data, 'POST', {'Content-Type': 'application/x-www-form-urlencoded;charset=UTF-8'})
// 项目签约进度(按日)
export const reqSignSpeedDay = (data) => ajax(`${BASE_URL}/project/getSignDay`, data, 'POST', {'Content-Type': 'application/x-www-form-urlencoded;charset=UTF-8'})
// 项目拆迁户搜索
export const reqSearchFamily = (data) => ajax(`${BASE_URL}/project/getProjectSerach`, data, 'POST', {'Content-Type': 'application/x-www-form-urlencoded;charset=UTF-8'})

